/**
 * Created by singemazuo on 2/7/16.
 */

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var sha1 = require('sha1');

var db = mongoose.createConnection('localhost','GoodHome');

db.on('error',console.error.bind(console,'连接错误'));

var GoodsSchema = new Schema({
    shootName:String,
    longName:String,
    originURL:String,
    createTime:Date,
    updateTime:Date,
    description:String,
    address:String,
    phone:Integer,
});

var Goods = db.model('Goods',AuthorizedSchema);
module.exports = Goods;
